package org.openkoala.koala.utils; 

import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.swt.widgets.Shell;

/**
 * MessageBox工具类
 * @author zyb
 *
 */
public class MessageBoxUtils {

	/**
	 * 弹出消息框
	 * @param shell 
	 * @param text
	 * @param message
	 */
	public static void showMessage(Shell shell, String text, String message) {
		MessageBox messageBox = new MessageBox(shell);
		messageBox.setText(text);
		messageBox.setMessage(message);
		messageBox.open();
	}
}
